@import url('https://fonts.googleapis.com/css?family=Muli&display=swap');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: linear-gradient(to Bottom, #eafbff 0%, #eafbff 50%, #5290f9 50%, #5290f9 100%);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Muli', sans-serif;

}


nav{
  background-color: #fff;
  padding: 20px;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.6s linear;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  overflow-x: hidden;
}

nav.active{
  width: 350px;
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style-type: none;
  width: 0;
  transition: width 0.6s linear;

}

nav.active ul{
  width: 100%;
}


nav ul li{
  opacity: 0;
  transform: rotateY(0deg);

  transition: all 0.6s linear;
}

nav.active ul li{
  opacity: 1;
  transform:rotateY(-360deg);
}


nav ul li a{

  text-decoration: none;
  color:#000;
  margin: 0 10px;
}

nav .icon{
  background-color: #fff;
  width: 30px;
  height: 30px;
  cursor: pointer;
  border: 0;
  position: relative;
}


.icon .line{
  background-color: #5290f9;
  width: 20px;
  height: 2px;
  position: absolute;
  top: 10px;
  left:5px;
  transition: transform 0.6s linear;
}

.icon .line2{
  top: 18px;
}

nav.active .icon .line1{
  transform: rotate(-765deg) translateY(5.5px);
}
nav.active .icon .line2{
  transform: rotate(765deg) translateY(-5.5px);
}
